package com.tigase.dao;

import com.tigase.bean.TigaseUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface TigaseUserMapper {

    int deleteByPrimaryKey(String userId);

    int insert(TigaseUser record);
    @Insert("INSERT INTO t_user(name, age) VALUES(#{name}, #{age})")
    int insertSelective(TigaseUser record);
    @Select("SELECT user_id from t_user where user_id=#{userId}")
    String selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(TigaseUser record);

    int updateByPrimaryKey(TigaseUser record);
}